import Vue from 'vue';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import App from './App.vue';
import router from './router';
import 'babel-polyfill';
import VideoPlayer from 'vue-video-player';
import 'video.js/dist/video-js.css';
import 'videojs-flash';
import axios from 'axios';
// import * as echarts from 'echarts';
import api from './api/api/index';
import BaiduMap from 'vue-baidu-map';


const echarts = require('echarts');

Vue.prototype.$api = api;
Vue.prototype.$echarts = echarts;
Vue.prototype.$axios = axios;
Vue.use(VideoPlayer);
Vue.use(ElementUI);

Vue.use(BaiduMap, {
    ak: 'cV3kTRLIT7kRlOyiUtqwnAi6KHdpMmuo'
});
Vue.config.productionTip = false;
new Vue({
    el: '#app',
    router,
    render: h => h(App)
}).$mount('#app');